package com.yejiali.backend.utils;


import jakarta.servlet.http.HttpServletResponse;

public class WebUtil {
    public static String renderString(HttpServletResponse response, String content) {
        try{
            response.setStatus(200);
            response.setContentType("application/json;charset=utf-8");
            response.setCharacterEncoding("UTF-8");
            response.getWriter().print(content);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}


